package com.chenfei.poi.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author chenfei
 * @description
 * @since 2018/2/6
 */
@Data
@ApiModel(value="基础返回对象",description="基础返回对象")
public class BaseResp<T> {
    @ApiModelProperty(value="返回码",name="code")
    private String code;
    @ApiModelProperty(value="返回消息",name="msg")
    private String msg;
    @ApiModelProperty(value="返回具体信息",name="data")
    private T data;

    public BaseResp(){
        this.code = "00";
        this.msg = "success";
    }
}
